<!--conf
<sample>
              <product version="1.5" edition="pro"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
	<title> Lock tree</title>
</head>

<body>
	<h1>Lock tree</h1>
    <p>You can deny collapsing/exanding any node in the tree. To test this functionality click on an appropriate action link.</p>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	
	<table>
		<tr>
			<td>
				<div id="treeboxbox_tree" style="width:250px; height:218px; background-color:#f5f5f5;border :1px solid Silver; overflow:hidden; "/>
			</td>
			<td rowspan="2" style="padding-left:25" valign="top">
            <div>
            <a  href="javascript:void(0)" onClick="tree.lockTree(true);">Lock tree</a></div>
            <div>
            <a  href="javascript:void(0)" onClick="tree.lockTree(false);">UnLock tree</a></div>
			 <div>
            <a  href="javascript:void(0)" onClick="tree.lockItem(tree.getSelectedItemId(),true)">Lock item</a></div>
            <div>
            <a  href="javascript:void(0)" onClick="tree.lockItem(tree.getSelectedItemId(),false)">UnLock item</a></div>
            <div>
            <a  href="javascript:void(0)" onClick="alert(tree.isLocked(tree.getSelectedItemId()))">Get lock state</a></div>
			</td>
		</tr>
		
	</table>

	<script>
			tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);

			tree.setSkin('dhx_skyblue');
			tree.setImagePath("../../../codebase/imgs/dhxtree_skyblue/");
            tree.enableDragAndDrop(true);
            tree.setLockedIcons("lock.gif","lock.gif","lock.gif");
			tree.loadXML("../common/tree_lc.xml");
	</script>
<br><br>
  <div id="out_zone"></div>
</body>
</html>
